package com.glsc.ngateway.common.base.domain.mysql.opmanage.report.excel;

import java.io.Serializable;

public class GltbFundPositionId implements Serializable {
    private static final long serialVersionUID = 1L;
    private String productName;
    private String date;
    private String investmentObject;

    public GltbFundPositionId(){
        super();
    }

    public GltbFundPositionId(String productName, String date,String investmentObject){
        super();
        this.productName=productName;
        this.date=date;
        this.investmentObject=investmentObject;
    }

    public void setInvestmentObject(String investmentObject) {
        this.investmentObject = investmentObject;
    }

    public String getInvestmentObject() {
        return investmentObject;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDate() {
        return date;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((productName == null) ? 0 : productName.hashCode());
        result = prime * result + ((date == null) ? 0 : date.hashCode());
        result = prime * result + ((investmentObject == null) ? 0 : investmentObject.hashCode());
        return result;
    }
    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        GltbFundPositionId other = (GltbFundPositionId) obj;
        if (productName == null) {
            if (other.productName != null)
                return false;
        } else if (!productName.equals(other.productName))
            return false;
        if (date == null) {
            if (other.date != null)
                return false;
        } else if (!date.equals(other.date))
            return false;
        if (investmentObject == null) {
            if (other.investmentObject != null)
                return false;
        } else if (!investmentObject.equals(other.investmentObject))
            return false;
        return true;
    }
}
